<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box {
            position: absolute;
            left: 50%;
            bottom: 50%;
            transform: translate(-50%);
            width: 198px;
            height: 88px;
            background-image: url(logo-animate.png);
            background-position-y: 1672px;
        }
    </style>
</head>
<body>
<!--198 * 1672-->
<!--88-->
<div class="box"></div>
<script>
    const IMG_HEIGHT = 1672
    const DIV_HEIGHT = 88
    const MAX_NUM = IMG_HEIGHT / DIV_HEIGHT
    let index = MAX_NUM
    const box = document.querySelector('.box')
    let timer = null
    box.addEventListener('click', () => {
        clearInterval(timer)
        timer = setInterval(() => {
            if (index > 0) {
                index--
                box.style.backgroundPositionY = `${index * DIV_HEIGHT}px`
            } else {
                index = MAX_NUM
                clearInterval(timer)
            }
        }, 316 * 2 / MAX_NUM)
    })
</script>
</body>
</html>
